﻿@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/_JuiLayout.cshtml";
}
@section header {}
<div id="layout" class="noNavTab">
    <div id="navTab">
        <div class="pageContent">
            <h2 class="contentTitle">
                添加用户</h2>
            <div class="pageFormContent nowrap" layouth="56">
                @{
                    string rturl = "/SysMenu/List?menu=SysIBUsers&name=list";
                    using (Html.BeginForm("AddUser", "SysMenu", new { tname = DencryptHelper.Encrypt("Sys_IBUsers"), url = rturl }, FormMethod.Post, new { @class = "pageForm required-validate", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
                    {
                    <dl>
                        <dt>用户名：</dt>
                        <dd>
                            @Html.TextBox("t0_username", "", new { size = 30, maxlength = 20,@class= "required" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>密码：</dt>
                        <dd>
                            @Html.Password("t0_password", "", new { size = 30, @class = "required alphanumeric", minlength = 6, maxlength = 20, alt = "字母、数字、下划线 6-20位" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>真实姓名：</dt>
                        <dd>
                            @Html.TextBox("t0_realname", "", new { size = 30, maxlength = 20,@class= "required" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>性别：</dt>
                        <dd>
                            <label>
                                @Html.RadioButton("t0_sex", "男", new { @checked = "checked" })男
                            </label>
                            <label>
                                @Html.RadioButton("t0_sex", "女")女
                            </label>
                        </dd>
                    </dl>
                    <dl>
                        <dt>角色ID：</dt>
                        <dd>
                            @{Html.RenderPartial("~/views/SysMenu/SysIBUsers/IBRoles.ascx");}
                        </dd>
                    </dl>
                    <dl>
                        <dt>入职时间：</dt>
                        <dd>
                            <input type="text" name="t0_DatesEmployed" class="date" format="yyyy-MM-dd" readonly="true" />
                            <a class="inputDateButton" href="javascript:;">选择</a>
                        </dd>
                    </dl>
                    <dl>
                        <dt>&nbsp</dt>
                        <dd><div class="buttonActive">
                                <div class="buttonContent">
                                    <button type="submit">
                                        添加</button></div>
                            </div></dd>
                        <dd><a class="button" href='@rturl'><span>返回</span></a></dd>
                    </dl>
                    }
                }
            </div>
        </div>
    </div>
</div>

<link href="/content/jui-normal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

</script>
